<?php $this->_extends(Helper_Store::layout()); ?>
<?php $this->_block('title');?> <?=_L('member_center')?>   -  <?=$store['name']?> <?php $this->_endblock(); ?>
<?php $this->_block('contents'); ?>
<style>
th{ text-align:right; padding:5px 10px;}
</style>
<div class="MemberCenter">
  <div class="siteparttitle">
    <div class="title"></div>
    <div class="main">
      <div class="content">
        <div class="user"><?=_L('member/welcome')?>：<br />
          <strong><?=$customer['email']?></strong></div>
        <div class="info"> </div>
      </div>
    </div>
  </div>
  <div class="MemberSidebar">
     <?php $this->_element('customermenu'); ?>
  </div>
  <div class="MemberMain">
    <div style="margin-right:175px;">
<h1 class="title"><?=_L('my_order')?></h1>
<?php if(isset($orders)&&count($orders)):?>
<form action="" method="post">
<table width="100%" cellpadding="3" cellspacing="0" class="liststyle">
  <col class="span-1"></col>
  <col class="span-5 ColColorGray">
  </col>
  <!--<col></col>-->
  <col class="span-5">
  </col>
  <col class="span-3 ColColorOrange">
  </col>
  <col class="span-5">
  </col>
  <thead>
    <tr>
	  <th></th>
      <th><?=_L('order_sn')?></th>
      <th><?=_L('created')?></th>
      <th><?=_L('order_amount')?></th>
      <th><?=_L('order_status')?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($orders as $order):?>
    <tr>
	  <td><input type="checkbox" name="order_id[<?=$order->order_id?>]" value="<?=$order->order_id?>" /> </td>	
      <td style="font-size:17px ; font-weight:bold"><a href="<?=_url('order',array('order_id'=>$order->order_id))?>"><?=$order->order_id?></a></td>
      <td><?=date('Y-m-d H:i:s',$order->created)?></td>
      <td class="textright"><?=Helper_currency::fetch($order->finel_amount,null,$order->currency)?></td>
      <td style="text-align:left"><?=_L('payment_status')?> ：<?=$order['status_payment']?><br />
		  <?=_L('shipment_status')?> : <?=$order['status_shiped']?>
      </td>
    </tr>
	<?php endforeach;?>
  </tbody>
</table>
<?php else:?>
<p id="cart-none-msg">
<div class="notice">
	<?=_L('no_orders')?>
</div>
</p>
<?php endif;?>
    </div>
  </div>
  <div class="clear"></div>
</div>
<div class="clear"></div>

<?php $this->_endblock('contents'); ?>
